package com.huawei.cyc;

import java.util.Scanner;

public class Stjdb2 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int comp=(int)(Math.random()*3);
        int your;
        System.out.println("你出什么？（2（石头）、1（剪刀）、0（布）");
        your=s.nextInt();
        System.out.print("计算机输出的是："+((comp==1)?"剪刀":((comp==2)?"石头":"布")));
        System.out.print(",你出"+((your==2)?"石头":((your==1)?"剪刀":"布")));
        if (your==comp){
            System.out.println(",平局");
        }
        else if((your>comp&&comp!=0)||(your>comp&&(comp==0&&your==1))||(your==0&&comp==2))
            System.out.println(",你赢了");
        else
            System.out.println(",你输了");

    }

}
